Sebastian Dröge [Wed, 15 Sep 2010 14:41:41 +0000 (16:41 +0200)]
gdk: Only use XComposite if it is available
Fixes build if it isn't available. Bug #629748.
Tor Lillqvist [Wed, 15 Sep 2010 11:19:40 +0000 (14:19 +0300)]
Fix build on Windows
No idea of the widget embedding crack has worked in recent versions,
even less now. But at least it now compiles.
Tristan Van Berkom [Wed, 15 Sep 2010 07:52:29 +0000 (16:52 +0900)]
spinner: Dont inherit from GtkDrawingArea part 2.
Seems commit
7b42d4feda5448cf4f929aeb79f56ba9e524ac39 makes
GtkSpinner a direct subclass of GtkWidget but forgets to
update the header file to include gtkwidget.h instead and
declare the instance and class structures properly (assuming
this was just a missed file in the commit).
Javier Jardón [Tue, 14 Sep 2010 18:09:43 +0000 (20:09 +0200)]
spinner: timeout should add/remove in map/unmap, not realize/unrealize.
Otherwise hiding the spinner won't stop it
Javier Jardón [Wed, 15 Sep 2010 01:28:24 +0000 (03:28 +0200)]
gtkentry: remove unnneded check in map/unmap functions
Javier Jardón [Wed, 15 Sep 2010 01:06:47 +0000 (03:06 +0200)]
Add deprecation guards for gtk_widget_size_request()
Javier Jardón [Wed, 15 Sep 2010 01:13:58 +0000 (03:13 +0200)]
demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()
Javier Jardón [Tue, 14 Sep 2010 01:33:06 +0000 (03:33 +0200)]
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
Christian Kirbach [Tue, 14 Sep 2010 21:38:07 +0000 (23:38 +0200)]
[l10n] Updated German translation
Tristan Van Berkom [Tue, 14 Sep 2010 19:51:36 +0000 (04:51 +0900)]
Adjusted new documentation for GtkSizeGroup.
Tristan Van Berkom [Tue, 14 Sep 2010 18:54:12 +0000 (03:54 +0900)]
Added documentation to gtksizegroup.sgml explaining what happens with height-for-width widgets.
When grouping height-for-width trading widgets (wrapping labels for instance)
vertically; the height for the minimum width will always be used for the entire
group... this patch warns about this in the docs.
Tristan Van Berkom [Tue, 14 Sep 2010 05:52:59 +0000 (14:52 +0900)]
Fixed GtkSizeGroups to adjust both minimum and natural requisitions
Originally the GtkSizeRequestIface patches left GtkSizeGroup working
only by bumping the minimum sizes - this commit fixes size groups to take
both minimum and natural requests into account.
Javier Jardón [Tue, 14 Sep 2010 18:40:15 +0000 (20:40 +0200)]
Add deprecation guards for gtk_cell_view_get_size_of_row()
Benjamin Otte [Mon, 13 Sep 2010 23:28:01 +0000 (01:28 +0200)]
spinner: Don't inherit from drawing area
A drawing area is not meant to be subclassed from. It also doesn't
provide any feature a spinner would need either.
Benjamin Otte [Mon, 13 Sep 2010 23:25:07 +0000 (01:25 +0200)]
spinner: Implement the size request interface
Doing size requests in expose is broken.
Benjamin Otte [Mon, 13 Sep 2010 23:19:48 +0000 (01:19 +0200)]
spinner: Move G_DEFINE_TYPE() below function definitions
Also remove redundant double definition.
Benjamin Otte [Mon, 13 Sep 2010 23:17:17 +0000 (01:17 +0200)]
wrapbox: Lookie, an unused variable
Benjamin Otte [Mon, 13 Sep 2010 23:09:53 +0000 (01:09 +0200)]
spinner: Define desired size at top of file
No magic numbers in the code please
Matthias Clasen [Mon, 13 Sep 2010 22:46:49 +0000 (18:46 -0400)]
GtkWrapBox: let GtkContainer handle border width
Matthias Clasen [Mon, 13 Sep 2010 22:36:51 +0000 (18:36 -0400)]
Remove fill options from GtkWrapBox
GtkWidget alignment properties make this unnecessary in new containers.
Matthias Clasen [Mon, 13 Sep 2010 22:21:21 +0000 (18:21 -0400)]
Remove padding from GtkWrapBox
GtkWidget margins make this unnecessary in new containers.
Matthias Clasen [Mon, 13 Sep 2010 21:54:08 +0000 (17:54 -0400)]
GtkBox: let GtkContainer handle border width
Javier Jardón [Mon, 13 Sep 2010 20:11:42 +0000 (22:11 +0200)]
Add deprecation guards for gtk_widget_get_child_requisition()
Javier Jardón [Mon, 13 Sep 2010 20:10:47 +0000 (22:10 +0200)]
demos: Do not use deprecated gtk_widget_get_child_requisition()
Use gtk_size_request_get_size() instead
Milan Bouchet-Valat [Wed, 7 Oct 2009 20:08:41 +0000 (22:08 +0200)]
bgo#486839 - Fix path bar size group in the file chooser
Since the location button is hidden in save mode, we need to add the
path bar to the size group too. The location button still has to be in
the group though, because it's larger than the path bar (when
shown). Instead of using the recent/search icons, add their hboxes so
that themed widget spacings don't introduce variations.
Javier Jardón [Thu, 9 Sep 2010 13:35:58 +0000 (15:35 +0200)]
Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
Tristan Van Berkom [Mon, 13 Sep 2010 17:28:23 +0000 (02:28 +0900)]
Fixed GtkWrapBox to allocate variable row AND column heights when in ALIGNED mode
With this new approach at request and allocate time, the average child size
is used to determine a good guess at how many columns will fit the box
width; afterwards extra columns are appended and checked to fit.
Then the row heights are calculated based on height-for-width of each
child in the row which now may have individual widths.
Tristan Van Berkom [Mon, 13 Sep 2010 11:32:13 +0000 (20:32 +0900)]
Make testwrapbox scrolled window scrollbars automatic.
Did this in the hope to reproduce infinite recursion bugs
with height-for-width in scrolled windows (see complex bgo #611740
for reference for now).
Tristan Van Berkom [Mon, 13 Sep 2010 11:31:33 +0000 (20:31 +0900)]
Changed GtkWrapBox code to avoid a growing GArray of a known size.
Adel Gadllah [Mon, 13 Sep 2010 16:20:22 +0000 (18:20 +0200)]
[GdkWindowCache] Don't ignore the CompositeOverlayWindow
Add the composite overlay window to the cache, as this can be a reasonable Xdnd proxy as well.
This is only done when the screen is composited in order to avoid mapping
the COW. We assume that the CM is using the COW (which is true for pretty
much any CM currently in use).
https://bugzilla.gnome.org/show_bug.cgi?id=601731
Kristian Rietveld [Mon, 13 Sep 2010 15:13:21 +0000 (17:13 +0200)]
Update gtkstyle.c to account for removal of row-ending-details
The detail strings now have more "detail" by default, so gtkstyle.c
needed to be updated to properly handle this. Tests like testtreeview,
testtreesort now have proper background drawing again.
This strncmp trick was the best I could think of so quickly, if anybody
has an idea to do this in a better way, let me know.
Kristian Rietveld [Mon, 13 Sep 2010 14:47:14 +0000 (16:47 +0200)]
Mark declaration of symbol _gtk_text_unknown_char_utf8 as extern
So that the symbol is not re-created each time the header is included.
The symbol is defined in gtktexttypes.c already.
Kristian Rietveld [Mon, 13 Sep 2010 14:39:55 +0000 (16:39 +0200)]
Use accessor functions to access GtkWidget
Kristian Rietveld [Mon, 13 Sep 2010 14:27:08 +0000 (16:27 +0200)]
Update for GDK key name changes
Kristian Rietveld [Mon, 13 Sep 2010 14:26:02 +0000 (16:26 +0200)]
Update Quartz backend for GDK key name changes
Takayuki KUSANO [Mon, 13 Sep 2010 13:19:59 +0000 (22:19 +0900)]
Updated Japanese translation.
Havoc Pennington [Sun, 5 Sep 2010 16:59:29 +0000 (12:59 -0400)]
Add padding and alignment tests to testadjustsize.c
Havoc Pennington [Sun, 5 Sep 2010 16:21:27 +0000 (12:21 -0400)]
Add margin and alignment properties to GtkWidget
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
Havoc Pennington [Sun, 5 Sep 2010 06:22:47 +0000 (02:22 -0400)]
GtkButton: let GtkContainer handle border width
Havoc Pennington [Sun, 5 Sep 2010 06:12:10 +0000 (02:12 -0400)]
add gtk_container_class_handle_border_width() so subclasses can ignore border_width
A subclass calls gtk_container_class_handle_border_width()
in its class_init
This marks the subclass as expecting GtkContainer to deal with
border width automatically, which GtkContainer then does.
Havoc Pennington [Sun, 5 Sep 2010 03:40:32 +0000 (23:40 -0400)]
Add testadjustsize test, to test new adjust size methods and related features
This will test size adjust, and interactions with other padding and border
Havoc Pennington [Sun, 5 Sep 2010 16:19:14 +0000 (12:19 -0400)]
GtkWidget: add adjust_size_request adjust_size_allocation virtual funcs
Use these new methods to handle set_size_request (aka aux_info)
inside gtkwidget.c, instead of having external code mess with it.
The virtual functions can be used for other purposes in the
future. For example, GtkContainer::border_width could be
automatically implemented for all container subclasses.
Havoc Pennington [Sun, 5 Sep 2010 16:14:40 +0000 (12:14 -0400)]
Use _gtk_widget_get_aux_info_or_defaults() when possible in gtkwidget.c
Did not update uses in other files because the plan is to
get rid of those other uses anyhow. So don't want to make
this function available in the header.
Havoc Pennington [Sun, 5 Sep 2010 16:11:47 +0000 (12:11 -0400)]
add _gtk_widget_get_aux_info_or_defaults()
This is better than peeking aux info then testing != NULL
in several ways:
- it returns const aux info so if we don't create we can't write
- it ensures that the default we assume if aux_info is NULL is
the same as the default we set if we've created the aux info
- it avoids typing in != NULL checks
Havoc Pennington [Mon, 6 Sep 2010 02:19:31 +0000 (22:19 -0400)]
Fix more SizeRequest implementations to avoid recursive calls to wrapper API
GtkFrame, GtkComboBox, GtkExpander, GtkMenu, GtkWrapBox
These are all the examples I could find so far.
https://bugzilla.gnome.org/show_bug.cgi?id=628829
Havoc Pennington [Sun, 5 Sep 2010 06:48:36 +0000 (02:48 -0400)]
Warn about recursively calling size req wrappers on the same object and orientation
We are not re-entrant and there is no reason for widgets to
do this, most likely they'll just get unexpected bugs because
the wrappers may modify the request.
Computing the request should logically rely only on the
widget itself, not on any adjustments caused by set_size_request,
size groups, and so forth.
https://bugzilla.gnome.org/show_bug.cgi?id=628829
Havoc Pennington [Sun, 5 Sep 2010 05:42:14 +0000 (01:42 -0400)]
default impls of width_for_height,hfw should chain directly not use wrapper API
In GtkBin and GtkWidget we tried to provide handy defaults that
call get_width if there's no get_width_for_height and
get_height for get_height_for_width.
However, they used the wrapper API on GtkSizeRequest instead of
chaining directly to the other method implementation.
This could result in all kinds of surprising behavior, for example,
get_width_for_height() would now already include the effects of set_size_request().
If nothing else it's inefficient. But it's just conceptually wrong,
because to chain to another implementation, we should call the other
implementation, not call a wrapper around the other implementation
(when we're already inside a previous invocation of the wrapper,
i.e. compute_size_for_orientation() ends up reinvoking itself
in the same orientation on the same object which it pretty
likely isn't intending to do)
https://bugzilla.gnome.org/show_bug.cgi?id=628829
Havoc Pennington [Sat, 11 Sep 2010 23:25:57 +0000 (19:25 -0400)]
Use gint16 for GtkBorder
32K of border ought to be enough for any pixel dimensions. At least
until screens are so huge we start using doubles.
This saves a nice 64 bits of space when we have a GtkBorder
stored somewhere.
Signed integers are used to avoid surprising unsigned math
issues. Just search GTK's whole git log from inception
for "unsigned" if you want to find any number of commits
fixing signed/unsigned bugs.
https://bugzilla.gnome.org/show_bug.cgi?id=629387
Javier Jardón [Wed, 25 Aug 2010 15:55:48 +0000 (17:55 +0200)]
Fix some compilation warnings
GScanner token field is declared as GTokenType instead a guint
See Glib bug: https://bugzilla.gnome.org/show_bug.cgi?id=627890
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627962
Javier Jardón [Mon, 13 Sep 2010 00:46:46 +0000 (02:46 +0200)]
docs: Fix gdk_display_get_core_pointer() docs
Point to gdk_device_manager_get_client_pointer(),
not gdk_display_get_client_pointer().
Benjamin Otte [Sun, 12 Sep 2010 13:55:57 +0000 (15:55 +0200)]
style: Fix drawing of insensitive text
When writing the original code I erroneously assumed that the current
point of the cairo context would be saved by cairo_save/restore(), but
of course the current point is part of the path and therefor isn't
saved.
Also do a cairo_new_path() before rendering any text so that we are sure
the text ends up at the right spot.
Matthias Clasen [Sat, 11 Sep 2010 02:28:55 +0000 (22:28 -0400)]
Don't use g_idle_add to schedule idles in GDK
We need to use gdk_threads_add_idle, in order to keep GDK code
under the GDK lock.
Bug 629277
Javier Jardón [Sat, 11 Sep 2010 01:27:37 +0000 (03:27 +0200)]
gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup
Javier Jardón [Sat, 11 Sep 2010 02:24:54 +0000 (04:24 +0200)]
Revert "gtk/gtkmain.c: Use accessor functions to access GtkWindowGroup"
This reverts commit
65b9fc3e5bbae5b5efb4568c02df60939956f722.
Javier Jardón [Sat, 11 Sep 2010 01:28:11 +0000 (03:28 +0200)]
gtk/gtkmain.c: Use accessor functions to access GtkWindowGroup
Javier Jardón [Tue, 17 Aug 2010 13:37:57 +0000 (15:37 +0200)]
GtkWindow: move public members to private structure
Signed-off-by: Christian Dywan <christian@twotoasts.de>
Matthias Clasen [Fri, 10 Sep 2010 16:31:15 +0000 (12:31 -0400)]
Bump version to 2.90.8
Matthias Clasen [Fri, 10 Sep 2010 15:08:18 +0000 (11:08 -0400)]
Include gdkkeysyms.h in gdk.h
Followup to bug 629093
Mike Gorse [Fri, 10 Sep 2010 13:46:34 +0000 (09:46 -0400)]
Gail: Remove gail_cell_type_add_action_interface, as it no longer does anything
Mike Gorse [Fri, 10 Sep 2010 10:09:41 +0000 (06:09 -0400)]
Gail: Take fill/page size into account when returning a range's maximum value
Kjartan Maraas [Fri, 10 Sep 2010 07:53:58 +0000 (09:53 +0200)]
Updated Norwegian bokmål translation
Matthias Clasen [Fri, 10 Sep 2010 02:33:56 +0000 (22:33 -0400)]
Some more updates
Matthias Clasen [Fri, 10 Sep 2010 02:17:27 +0000 (22:17 -0400)]
Update potfiles
Matthias Clasen [Fri, 10 Sep 2010 02:11:36 +0000 (22:11 -0400)]
Really stop exporting text-related variables
Matthias Clasen [Fri, 10 Sep 2010 01:55:28 +0000 (21:55 -0400)]
Remove GDK_DISPLAY() usage
Matthias Clasen [Thu, 9 Sep 2010 23:50:24 +0000 (19:50 -0400)]
Update NEWS for 2.90.7
Matthias Clasen [Thu, 9 Sep 2010 23:46:41 +0000 (19:46 -0400)]
Drop the gdk_display variable from gdk
This was the last exported variable; it wasn't multihead safe,
and there's easy replacement with gdk_display_get_default().
Also drop the GDK_DISPLAY() macro which was just a wrapper around
the variable.
Matthias Clasen [Thu, 9 Sep 2010 04:56:22 +0000 (00:56 -0400)]
Fix the docs build after GtkItem removal
Tristan Van Berkom [Thu, 9 Sep 2010 18:22:20 +0000 (03:22 +0900)]
Adding note to docs of gtk_widget_set_window()
gtk_widget_set_window() does not add a reference to the
owned window... this is an exception to most gtk_foo_set_bar()
functions where as it acts as if it were named gtk_widget_take_window().
Adding note to the docs to avoid people giving the window to the
widget and naturally proceeding to unref the window.
Benjamin Otte [Thu, 9 Sep 2010 16:10:04 +0000 (18:10 +0200)]
widget: Fix SEGV when no focus widget exists
Benjamin Otte [Thu, 9 Sep 2010 13:46:55 +0000 (15:46 +0200)]
gail: Add missing include
Tor Lillqvist [Thu, 9 Sep 2010 12:44:12 +0000 (15:44 +0300)]
Avoid potential DLL hijacking in Wintab code
Load Wintab32.dll from an absolute path. A proper Wintab32.dll, if
present, should be in the Windows system directory, so load it from
there.
Tor Lillqvist [Thu, 9 Sep 2010 12:02:33 +0000 (15:02 +0300)]
Use accessor functions
Tor Lillqvist [Thu, 9 Sep 2010 12:01:36 +0000 (15:01 +0300)]
Fix gail build
Tor Lillqvist [Thu, 9 Sep 2010 11:35:20 +0000 (14:35 +0300)]
Adapt to the GDK_KEY changes
Tristan Van Berkom [Thu, 9 Sep 2010 07:27:22 +0000 (16:27 +0900)]
Fixed GtkTextView & GtkIconView to consult it's true previous size request
Fixed issues in my previous patch for bug 626939 removing GtkRequisition
cache: these widgets monitor the previous requested size and decide whether
to queue a resize when the content changes based on it's prior request.
Tristan Van Berkom [Thu, 9 Sep 2010 06:02:56 +0000 (15:02 +0900)]
Moved GtkSizeRequest cache to GtkWidget->priv
Now that we have a private data installed directly on
the GtkWidget instance it makes no sense to cache the size
requests on widget qdata. This change will generally make
GTK+ memory less fragmented as well as significantly speed
up the size request process.
Tor Lillqvist [Thu, 9 Sep 2010 08:09:55 +0000 (11:09 +0300)]
Use accessor functions in Win32-only code
Tor Lillqvist [Thu, 9 Sep 2010 08:03:22 +0000 (11:03 +0300)]
Don't use the same name for a function that used to be a variable
Rename the gtk_major_version() etc functions I introduced yesterday to
start with gtk_get. Avoids misleading results in client programs whose
developers that don't notice the change or the compiler warnings, and
when recompiling against gtk3 then use the function addresses as the
version numbers.
Matthias Clasen [Thu, 9 Sep 2010 04:51:08 +0000 (00:51 -0400)]
Fix build of gail after GtkItem removal
Matthias Clasen [Thu, 9 Sep 2010 03:35:17 +0000 (23:35 -0400)]
Remove GtkItem
With the demise of GtkList and GtkTree, it has GtkMenuItem as sole
derived class, and is not really adding any value as a separate class.
Its few useful features have been merged into GtkMenuItem.
Bug 629104
Javier Jardón [Thu, 9 Sep 2010 00:25:25 +0000 (02:25 +0200)]
gtk/gtkhandlebox.c: Do not use gdk_window_get_deskrelative_origin()
This completes commit
bd277fad50704f6a39619cb418204bdfee112b98
Colin Walters [Wed, 8 Sep 2010 22:25:52 +0000 (18:25 -0400)]
porting guide: Update to mention GDK_KEY_ transition
Colin Walters [Wed, 8 Sep 2010 17:35:51 +0000 (13:35 -0400)]
GDK: Prefix key names with KEY_
The keysyms create a lot of potential namespace conflicts for
C, and are especially problematic for introspection, where we take
constants into the namespace, so GDK_Display conflicts with GdkDisplay.
For C application compatiblity, add gdkkeysyms-compat.h which uses
the old names.
Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is
the gtkimcontextsimple.c, since porting that requires porting more
custom Perl code.
Colin Walters [Wed, 8 Sep 2010 16:58:20 +0000 (12:58 -0400)]
gdk: Update gdkkeysyms.h
In preparation for adding a namespace prefix for introspection.
Javier Jardón [Wed, 8 Sep 2010 22:18:42 +0000 (00:18 +0200)]
Remove deprecated gdk_window_get_deskrelative_origin() and its implementations
Tor Lillqvist [Wed, 8 Sep 2010 22:08:21 +0000 (01:08 +0300)]
Drop GDK_DEBUG_GC and _IMAGE as GDK doesn't do that any more
Mike Gorse [Wed, 8 Sep 2010 21:55:28 +0000 (17:55 -0400)]
Remove a duplicate variable
Bug#629110: gtk_spinner_accessible_get_type always returns null
Javier Jardón [Wed, 8 Sep 2010 21:42:25 +0000 (23:42 +0200)]
Use G_CALLBACK() instead deprecated GTK_SIGNAL_FUNC()
Javier Jardón [Wed, 8 Sep 2010 20:58:03 +0000 (22:58 +0200)]
docs: Remove GtkFileSelection deprecated docs
Javier Jardón [Sat, 14 Aug 2010 18:42:20 +0000 (20:42 +0200)]
GtkWidget: Move public members to private structure
Javier Jardón [Wed, 8 Sep 2010 06:03:14 +0000 (08:03 +0200)]
gtk/gtknotebook.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:18:48 +0000 (23:18 +0200)]
gtk/gtkarrow.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:05:51 +0000 (23:05 +0200)]
gtk/gtkpathbar.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:02:44 +0000 (23:02 +0200)]
gtk/gtkruler.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:01:16 +0000 (23:01 +0200)]
gtk/gtkseparator.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:11:25 +0000 (23:11 +0200)]
gtk/gtkhandlebox.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:10:57 +0000 (23:10 +0200)]
gtk/gtkiconview.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:10:44 +0000 (23:10 +0200)]
gtk/gtkimage.c: use accessor functions to access GtkWidget
Javier Jardón [Wed, 11 Aug 2010 21:08:37 +0000 (23:08 +0200)]
gtk/gtkmenu.c: use accessor functions to access GtkWidget